package MyLinkedStack;

import MyArrayStack.MyStack;

public class Main {
    public static void main(String[] args) {
        MyStack myStack = new MyStack();
        myStack.push(12);
        myStack.push(34);
        myStack.push(45);
        myStack.push(56);
        myStack.push(67);
        myStack.display();
        System.out.println(myStack.pop());
        System.out.println(myStack.pop());
        System.out.println(myStack.pop());
        System.out.println(myStack.pop());
        System.out.println(myStack.pop());
        System.out.println(myStack.peek());
        myStack.display();
    }
}
